package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.CommodityItemDao;
import com.huilian.iotbox.admin.wap.service.CommodityItemService;
import com.huilian.iotbox.data.dto.CommodityItemDto;
import com.huilian.iotbox.data.vo.CommodityItemVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CommodityItemServiceImpl implements CommodityItemService {
    @Resource
    private CommodityItemDao commodityItemDao;
    @Override
    public int add(CommodityItemDto commodityItemDto) {
        return commodityItemDao.insert(commodityItemDto);
    }

    @Override
    public int update(CommodityItemDto commodityItemDto) {
        return commodityItemDao.update(commodityItemDto);
    }
}
